// 存储token
export const setToken = token => localStorage.setItem("TOKEN", token)
// 存储用户信息
export const userInfo = userInfo => localStorage.setItem("USER_INFO",JSON.stringify(userInfo))
export const getUserInfo = () => { return localStorage.getItem("USER_INFO") }
//清除本地用户信息
export const removeUserInfo = () => localStorage.removeItem("USER_INFO")

// 获取token
export const getToken = () => { return localStorage.getItem("TOKEN") }

// 清除本地存储的token
export const removeToken = () => localStorage.removeItem("TOKEN")